From f84efb247b0a60e5aeaf1d257e80cc2e1bec2e64 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Sep 2003 20:49:19 +0000 Subject: [PATCH] (tty_setup_colors): Treat any negative argument as -1. --- src/term.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/term.c b/src/term.c index dba6b0e4a52..8e4eb21c362 100644 --- a/src/term.c +++ b/src/term.c @@ -2066,6 +2066,10 @@ void tty_setup_colors (mode) int mode; { + /* Canonicalize all negative values of MODE. */ + if (mode < -1) + mode = -1; + switch (mode) { case -1: /* no colors at all */ -- 2.30.2